package com.itheima.mapper;

import com.itheima.dto.AddressDto;
import com.itheima.pojo.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressMapper {
     boolean defaultAddress(String id);

    Address getDefaultAddress();

    List<Address> getList();

    Address getAddressById(String id);

    void setAllAddress();


    Boolean removeAddressById(List<String> list);

    boolean add(Address address);


    boolean update(AddressDto addressDto);

    Address findByUserId(@Param("userId")String userId );
}
